// 用户信息模块
const SET_USER_MOBILE = 'SET_USER_MOBILE'
const SET_USER_ID = 'SET_USER_ID'
const SET_USER_LOGIN_STATUS = 'SET_USER_LOGIN_STATUS'

const state = {
  mobile: '',
  userId: '',
  loginStatus: ''
}

const mutations = {
  [SET_USER_MOBILE](state, mobile) {
    state.mobile = mobile
  },
  [SET_USER_ID](state, userId) {
    state.userId = userId
  },
  [SET_USER_LOGIN_STATUS](state, loginStatus) {
    state.loginStatus = loginStatus
  }
}

export default {
  state,
  mutations
}
